#include "calulatorwindow.h"
#include <QDebug>
#define SX 50
CalulatorWindow::CalulatorWindow(QWidget *parent) : QWidget(parent)
{
    initWindow();
}

void CalulatorWindow::initWindow()
{
   int startY = 10;
   int dx = 70;
   int dy = 70;
   int wh = 50;

   for(int i=0;i<2;i++)
   {
       for(int j=0;j<2;j++)
       {
            btns[i][j] = new QPushButton(texts[i][j],this);
            btns[i][j]->setGeometry(SX + j * dx,startY +i * dy,wh,wh);
       }
   }

}
